#include "stack.h"
#include"queue.h"

void S_test() {
	ST st;
	Stack_Init(&st);
	Stack_Push(&st, 1);
	Stack_Push(&st, 2);
	Stack_Push(&st, 3);
	Stack_Push(&st, 4);
	Stack_Push(&st, 5);
	Stack_Push(&st, 6);

	while (!Stack_Empty(&st)) {
		printf("%d ", Stack_Top(&st));
		Stack_Pop(&st);
	}
	printf("\n");

	Stack_Destory(&st);
}

void Q_test() {
	Queue q;
	Queue_Init(&q);
	Queue_Push(&q, 1);
	Queue_Push(&q, 2);
	Queue_Push(&q, 3);
	Queue_Push(&q, 4);
	Queue_Push(&q, 5);
	Queue_Push(&q, 6);

	while (!Queue_Empty(&q)) {
		printf("%d ", Queue_Front(&q));
		Queue_Pop(&q);
	}
	printf("\n");

	Queue_Destory(&q);
}

int main() {
	//S_test();
	Q_test();
	return 0;
}